package com.qf.feign.api;

import com.qf.vo.Car;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "car", path = "/carController")
public interface CarService {

    @RequestMapping("/getCarListByUid/{uid}")
    public Map<String, Object> getCarListByUid(@PathVariable("uid") Integer uid);

    @RequestMapping("/getCarListByUidAndGid")
    Map<String, Object> getCarListByUidAndGid(@RequestParam("uid") Integer uid, @RequestParam("gidArray") List<String> gidArray);
}

